import layoutDefault from '../layouts/default.vue';

let routes = [
    {
        name: 'home',
        path: '/',
        meta: { title: '首页', icon: 'home' },
        component: layoutDefault,
        children: [
            {
                name: 'index',
                path: '/index',
                meta: { title: '首页', icon: 'home' },
                component: () => import('../views/HomeView.vue')
            }
        ]
    },
    {
        name: 'examples',
        path: '/examples',
        redirect: '/examples',
        meta: { title: '测试', icon: 'test' },
        component: layoutDefault,
        children: [
            {
                name: 't-demo',
                path: '/t-demo',
                meta: { title: '地图Demo', icon: 't-3d' },
                component: () => import('../views/DemoView.vue')
            },
            {
                name: 't-3d',
                path: '/t-3d',
                meta: { title: '3D样例', icon: 't-3d' },
                component: () => import('../views/AboutView.vue')
            },
            {
                name: 't-map2D',
                path: '/t-map2D',
                meta: { title: '2D高精地图', icon: 'map' },
                component: () => import('../views/MapView2D.vue')
            },
            {
                name: 't-map',
                path: '/t-map',
                meta: { title: '3D高精地图', icon: 'map' },
                component: () => import('../views/MapView.vue')
            }
        ]
    }
];
export default routes;
